www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawSpline::GetFitPoints 方法

得到样条线的,拟合点数据.

IDL
[helpstring("method GetFitPoints")]
HRESULT GetFitPoints([out, retval] IMxDrawPoints** pPoints);

例如: C#

        MxDrawEntity ent = (MxDrawEntity)axMxDrawX1.GetEntity("选择样条线");
        if (ent == null)
            return;

        if (ent is MxDrawSpline)
        {
            MxDrawSpline spl = (MxDrawSpline)ent;
            MxDrawPoints fitPoints = spl.GetFitPoints();

            for (int i = 0; i < fitPoints.Count; i++)
            {
                MxDrawPoint pt = fitPoints.Item(i);

                MessageBox.Show(pt.x.ToString() + "," + pt.y.ToString());
            }
         }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!